home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _B077EBAB333440189EBD9630FF75BA94 < prev    next >
Encoding:
Text File  |  2006-08-04  |  7.2 KB  |  205 lines

  1. from PSPApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Angela M. Cable',
  6.         'Copyright': '2002, for free distribution only',
  7.         'Description': "A pen and ink effect",
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Do(Environment):
  13.     App.Do( Environment, 'LayerDuplicate', {
  14.             'GeneralSettings': {
  15.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  16.                 }
  17.             })
  18.  
  19.     App.Do( Environment, 'LayerProperties', {
  20.             'General': {
  21.                 'Opacity': None, 
  22.                 'Name': None, 
  23.                 'IsVisible': None, 
  24.                 'IsTransparencyLocked': None, 
  25.                 'LinkSet': None, 
  26.                 'UseHighlight': None, 
  27.                 'PaletteHighlightColor': None, 
  28.                 'GroupLink': None, 
  29.                 'BlendMode': App.Constants.BlendMode.Darken
  30.                 }, 
  31.             'BlendRanges': None, 
  32.             'Path': (0,0,[],App.Constants.Boolean.false), 
  33.             'BrightnessContrast': None, 
  34.             'ChannelMixer': None, 
  35.             'ColorBalance': None, 
  36.             'CurveParams': None, 
  37.             'HSL': None, 
  38.             'Threshold': None, 
  39.             'Levels': None, 
  40.             'Posterize': None, 
  41.             'Mask': None, 
  42.             'GeneralSettings': {
  43.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  44.                 'PreviewVisible': App.Constants.Boolean.true, 
  45.                 'AutoProof': App.Constants.Boolean.false
  46.                 }
  47.             })
  48.  
  49.     App.Do( Environment, 'GaussianBlur', {
  50.             'Radius': 10.000, 
  51.             'GeneralSettings': {
  52.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  53.                 'PreviewVisible': App.Constants.Boolean.true, 
  54.                 'AutoProof': App.Constants.Boolean.false
  55.                 }
  56.             })
  57.  
  58.     App.Do( Environment, 'LayerDuplicate', {
  59.             'GeneralSettings': {
  60.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  61.                 }
  62.             })
  63.  
  64.     App.Do( Environment, 'LayerProperties', {
  65.             'General': {
  66.                 'Opacity': None, 
  67.                 'Name': None, 
  68.                 'IsVisible': None, 
  69.                 'IsTransparencyLocked': None, 
  70.                 'LinkSet': None, 
  71.                 'UseHighlight': None, 
  72.                 'PaletteHighlightColor': None, 
  73.                 'GroupLink': None, 
  74.                 'BlendMode': App.Constants.BlendMode.Difference
  75.                 }, 
  76.             'BlendRanges': None, 
  77.             'Path': (0,0,[],App.Constants.Boolean.false), 
  78.             'BrightnessContrast': None, 
  79.             'ChannelMixer': None, 
  80.             'ColorBalance': None, 
  81.             'CurveParams': None, 
  82.             'HSL': None, 
  83.             'Threshold': None, 
  84.             'Levels': None, 
  85.             'Posterize': None, 
  86.             'Mask': None, 
  87.             'GeneralSettings': {
  88.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  89.                 'PreviewVisible': App.Constants.Boolean.true, 
  90.                 'AutoProof': App.Constants.Boolean.false
  91.                 }
  92.             })
  93.  
  94.     App.Do( Environment, 'Greyscale', {
  95.             'GeneralSettings': {
  96.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  97.                 }
  98.             })
  99.  
  100.     App.Do( Environment, 'LayerMergeVisible', {
  101.             'GeneralSettings': {
  102.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  103.                 }
  104.             })
  105.  
  106.     App.Do( Environment, 'NegativeImage', {
  107.             'GeneralSettings': {
  108.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  109.                 }
  110.             })
  111.  
  112.     App.Do( Environment, 'EnhanceEdgesMore', {
  113.             'GeneralSettings': {
  114.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  115.                 }
  116.             })
  117.  
  118.     App.Do( Environment, 'NewRasterLayer', {
  119.             'General': {
  120.                 'Opacity': 100, 
  121.                 'Name': 'Layer 1', 
  122.                 'IsVisible': App.Constants.Boolean.true, 
  123.                 'IsTransparencyLocked': App.Constants.Boolean.false, 
  124.                 'LinkSet': 0, 
  125.                 'UseHighlight': App.Constants.Boolean.false, 
  126.                 'PaletteHighlightColor': (255,255,64), 
  127.                 'GroupLink': App.Constants.Boolean.true, 
  128.                 'BlendMode': App.Constants.BlendMode.Normal
  129.                 }, 
  130.             'BlendRanges': {
  131.                 'BlendRangeGreen': (0,0,255,255,0,0,255,255), 
  132.                 'BlendRangeRed': (0,0,255,255,0,0,255,255), 
  133.                 'BlendRangeBlue': (0,0,255,255,0,0,255,255), 
  134.                 'BlendRangeGrey': (0,0,255,255,0,0,255,255)
  135.                 }, 
  136.             'GeneralSettings': {
  137.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  138.                 'PreviewVisible': App.Constants.Boolean.false, 
  139.                 'AutoProof': App.Constants.Boolean.false
  140.                 }
  141.             })
  142.  
  143.     App.Do( Environment, 'Fill', {
  144.             'BlendMode': 0, 
  145.             'MatchMode': 1, 
  146.             'Material': {
  147.                 'Color': (255,255,255), 
  148.                 'Pattern': None, 
  149.                 'Gradient': None, 
  150.                 'Texture': None
  151.                 }, 
  152.             'Opacity': 100, 
  153.             'Point': (199.000,169.000), 
  154.             'SampleMerged': 0, 
  155.             'Tolerance': 200, 
  156.             'ForegroundMaterial': None, 
  157.             'BackgroundMaterial': None, 
  158.             'GeneralSettings': {
  159.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  160.                 }
  161.             })
  162.  
  163.     App.Do( Environment, 'AddNoise', {
  164.             'Amount': 4, 
  165.             'Type': 2, 
  166.             'Monochrome': App.Constants.Boolean.true, 
  167.             'GeneralSettings': {
  168.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  169.                 'PreviewVisible': App.Constants.Boolean.true, 
  170.                 'AutoProof': App.Constants.Boolean.false, 
  171.                 'RandomSeed': 9510800
  172.                 }
  173.             })
  174.  
  175.     App.Do( Environment, 'LayerProperties', {
  176.             'General': {
  177.                 'Opacity': None, 
  178.                 'Name': None, 
  179.                 'IsVisible': None, 
  180.                 'IsTransparencyLocked': None, 
  181.                 'LinkSet': None, 
  182.                 'UseHighlight': None, 
  183.                 'PaletteHighlightColor': None, 
  184.                 'GroupLink': None, 
  185.                 'BlendMode': App.Constants.BlendMode.Burn
  186.                 }, 
  187.             'BlendRanges': None, 
  188.             'Path': (0,0,[],App.Constants.Boolean.false), 
  189.             'BrightnessContrast': None, 
  190.             'ChannelMixer': None, 
  191.             'ColorBalance': None, 
  192.             'CurveParams': None, 
  193.             'HSL': None, 
  194.             'Threshold': None, 
  195.             'Levels': None, 
  196.             'Posterize': None, 
  197.             'Mask': None, 
  198.             'GeneralSettings': {
  199.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  200.                 'PreviewVisible': App.Constants.Boolean.true, 
  201.                 'AutoProof': App.Constants.Boolean.false
  202.                 }
  203.             })
  204.  
  205.